﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ITSTOREBLL;
using ITStore.ViewModels;
using PagedList;
namespace ITStore.Controllers
{
    public class MenuController : Controller
    {
        private ITStoreEntities db = new ITStoreEntities();
        //
        // GET: /Menu/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult MenuNgang()
        {
            var mn = from menu in db.Menus
                     select menu;
            return View(mn.ToList());
        }

        public ActionResult MenuLSP()
        {
            var mn = from menu in db.LoaiSanPhams
                     select menu;
            return View(mn.ToList());
        }

        public ActionResult DropMenu()
        {
            var mn = from menu in db.LoaiSanPhams
                     select menu;
            return View(mn.ToList());
        }

        public ActionResult NhaSanXuat()
        {
            var nsx = from NSX in db.NhaSanXuats
                      select NSX;
            return View(nsx.ToList());
        }
    }
}
